package com.lyf.scm.plan.domain.remote.transaction;


import com.lyf.scm.plan.domain.remote.transaction.dto.NewPlanDTO;
import com.rome.arch.core.clientobject.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 交易中心
 *
 * @author huangtao
 * @date 2020/09/18
 */
@FeignClient(name = "trade-core-inner-server")
public interface TransactionRemote {


    /**
     * 推送加盟新店新品计划数据
     *
     * @param newPlanList
     * @return
     */
    @PostMapping("/v1/inner/po/partner/plan/import")
    Response<String> importJoinList(@RequestBody List<NewPlanDTO> newPlanList);

    /**
     * 推送直营新店新品计划数据
     *
     * @param newPlanList
     * @return
     */
    @PostMapping("/v1/inner/po/self/plan/import")
    Response<String> importDirectlyList(@RequestBody List<NewPlanDTO> newPlanList);
}
